#include<stdio.h>
#include<string.h> 
int main(){
	char s[100],ch[100];
	gets(s);
	int i=0,n=0;
	while(s[i]!='\0'){
		if(s[i]==','||s[i]=='?'||s[i]=='!'||s[i]=='.'||s[i]==32){
			i++;
			continue;
		}
		else{
			ch[n]=s[i];
			n++;
			i++;
		}
		
	}
	puts(ch);
	
	return 0;
} 
